﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.SharePoint.Administration;

namespace SharePoint911.SPAXO
{
    [CLSCompliant(false)]
    public class ConfigSettings : SPPersistedObject
    {
        public ConfigSettings() { }
        public ConfigSettings(string name, SPPersistedObject parent) : base(name, parent) { }

        [Persisted]
        private string _injectionOption;

        public string InjectionOption 
        {
            get { return _injectionOption; }
            set { _injectionOption = value; } 
        }

        public bool IsInjectToHeadSection 
        {
            get { return this.InjectionOption.Equals("Head", StringComparison.CurrentCultureIgnoreCase); }
        }
    }
}
